package com.custom.starter.service;

import com.custom.starter.config.CustomProperties;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * starter核心service
 *
 * @author chenfoxin
 * @date 2022年06月16日 7:21
 */
@Setter
@Getter
@NoArgsConstructor
public class CustomService {

    private CustomProperties customProperties;

    public CustomService(CustomProperties customProperties) {
        this.customProperties = customProperties;
    }

    public void say(){
        System.out.println("this.name = " + customProperties.getName()
                + "，this.value = " + customProperties.getValue());
    }
}
